﻿namespace Guru.Framework.Base
{
    public abstract class AbstractBaseBO : IBaseBO
    {
        private System.Collections.Generic.List<string> _changeList = null;

        protected AbstractBaseBO()
        {
            _changeList = new System.Collections.Generic.List<string>();
        }

        public virtual string GetTable()
        {
            throw new System.NotImplementedException("Table Name is not implemented.");
        }

        public virtual string GetIdColumn()
        {
            throw new System.NotImplementedException("Id Column is not implemented.");
        }

        public System.Collections.Generic.List<string> GetColumnChangeList()
        {
            return _changeList;
        }

        public void AddChangeList(string column)
        {
            if (_changeList.Contains(column) == false)
                _changeList.Add(column);
        }
    }
}
